package com.bleeth.fx.component;

import javafx.collections.FXCollections;
import javafx.scene.control.ChoiceBox;
import javafx.scene.control.Separator;
import lombok.Builder;


/**
 * @author Sakura
 * @version 1.0
 * @date 2021-11-13 22:17
 **/
@Builder
public class MSelect {

    @Builder.Default
    private double height = 30;

    @Builder.Default
    private double width = 150;




    public ChoiceBox make() {
        ChoiceBox cb = new ChoiceBox();
        cb.setItems(FXCollections.observableArrayList(
                "New Document", "Open ",
                new Separator(), "Save", "Save as")
        );
        cb.setPrefHeight(30);
        cb.setPrefWidth(150);
        return cb;
    }


}
